import * as TYPES from '../action-tpes'
import _ from '@/assets/utils'

const init = {
    info:null
}

export default function userReducer  (state=init , action)  {
    state = _.clone(state)
    switch (action.type){
        // 更新用户信息
        case TYPES.USER_INFO :
            state.info = action.info
            break
        default:
    }

    return state
}


